package cn.nexd.app.model;

import cn.nexd.app.orm.db.annotation.Column;
import cn.nexd.app.orm.db.annotation.Default;
import cn.nexd.app.orm.db.annotation.PrimaryKey;
import cn.nexd.app.orm.db.annotation.Table;
import cn.nexd.app.orm.db.enums.AssignType;

/**
 * 用来记录用户的操作行为
 * Created by wangxu on 16/3/23.
 */
@Table("opera_record")
public class OperaRecord {
    // 指定自增，每个对象需要有一个主键
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    private int id;
    @Column("start_time")
    private String startTime; // 启动扫描的时间
    @Column("end_time")
    private String endTime; // 结束扫描的时间
    @Column("user_name")
    private String userName;  // 使用者姓名  邮箱地址
    @Default("1")
    @Column("upload")
    private int isUpload;  // 1 : 未上传    0 : 已上传
    @Column("opera_record")
    private String operaRecord; // 操作记录
    @Column("lat")
    private String lat;  // 经度
    @Column("lng")
    private String lng; // 纬度
    @Column("mall_name")
    private String mallName;  // 采集商场的名称
    @Column("memo")
    private String memo; // 自定义的内容
    @Column("create_time")
    private String createTime; // 数据的创建时间
    @Column("building_id")
    private String buildingId; // 采集商场的id
    @Default("0")
    @Column("type")
    private String type; // 标准type

    public OperaRecord() {
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(int isUpload) {
        this.isUpload = isUpload;
    }

    public String getOperaRecord() {
        return operaRecord;
    }

    public void setOperaRecord(String operaRecord) {
        this.operaRecord = operaRecord;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getMallName() {
        return mallName;
    }

    public void setMallName(String mallName) {
        this.mallName = mallName;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getBuildingid() {
        return buildingId;
    }

    public void setBuildingid(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    @Override
    public String toString() {
        return "OperaRecord{" +
                "id=" + id +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", userName='" + userName + '\'' +
                ", isUpload=" + isUpload +
                ", operaRecord='" + operaRecord + '\'' +
                ", lat='" + lat + '\'' +
                ", lng='" + lng + '\'' +
                ", mallName='" + mallName + '\'' +
                ", memo='" + memo + '\'' +
                ", createTime='" + createTime + '\'' +
                ", buildingId='" + buildingId + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
